package com.sdkj.service.law;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdkj.dao.DaoSupport;
import com.sdkj.entity.Page;
import com.sdkj.util.PageData;


@Service("lawRegulationService")
public class LawRegulationService {
	@Resource(name = "daoSupport")
	private DaoSupport dao;

	public List<PageData> list(Page page)throws Exception {
		return (List<PageData>)dao.findForList("LawRegulationMapper.datalistPage", page);
	}

	public void save(PageData pd)throws Exception {
		dao.save("LawRegulationMapper.save", pd);
	}

	public PageData findById(PageData pd)throws Exception {
		return (PageData) dao.findForObject("LawRegulationMapper.findById", pd);
	}

	public void edit(PageData pd)throws Exception {
		dao.update("LawRegulationMapper.edit", pd);
		
	}
	
	
}
